-- GENERATED SPELL FOR [Plagued Champion] --


function spell0_16983(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16983', 5326, 1)
end

function spell1_16983(pUnit, Event) --@Shadow Shock,Self--
pUnit:FullCastSpellOnTarget(30138,pUnit)
pUnit:RegisterEvent('Sorts_16983', 572, 1)
end

function spell2_16983(pUnit, Event) --@Shadow Shock,Self--
pUnit:FullCastSpellOnTarget(54889,pUnit)
pUnit:RegisterEvent('Sorts_16983', 630, 1)
end

function Sorts_16983(pUnit, Event)
local choix_sorts_16983 = math.random(0, 2)
if choix_sorts_16983 == 0 then
pUnit:RegisterEvent('spell0_16983', 1, 1)
end
if choix_sorts_16983 == 1 then
pUnit:RegisterEvent('spell1_16983', 1, 1)
end
if choix_sorts_16983 == 2 then
pUnit:RegisterEvent('spell2_16983', 1, 1)
end
end

function mob16983_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16983', math.random(1500, 3000), 1)
end

function mob16983_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16983_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16983_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16983, 1, 'mob16983_Action')
RegisterUnitEvent(16983, 2, 'mob16983_Leave')
RegisterUnitEvent(16983, 3, 'mob16983_Kill')
RegisterUnitEvent(16983, 4, 'mob16983_Die')
